##	  Copyright 2012, Geoffrey GROFF and Dimitri SEGARD
##	  This file is part of otaku-loader.
##
##    otaku-loader is free software: you can redistribute it and/or modify
##    it under the terms of the GNU General Public License as published by
##    the Free Software Foundation, either version 3 of the License, or
##    (at your option) any later version.
##
##    otaku-loader is distributed in the hope that it will be useful,
##    but WITHOUT ANY WARRANTY; without even the implied warranty of
##    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##    GNU General Public License for more details.
##
##    You should have received a copy of the GNU General Public License
##    along with otaku-loader.  If not, see <http://www.gnu.org/licenses/>.

import sys
from cx_Freeze import setup, Executable

includefiles = ['COPYING', 'computer-girl.jpg']
includes = ['sip']

# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
    base = "Win32GUI"
    includefiles += [(r"C:\Python32\Lib\site-packages\PyQt4\plugins\imageformats","imageformats")]

# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {"packages": ["os"],
                     "optimize":2,
                     "include_files":includefiles,
                     "includes":includes}


setup(  name = "otaku-loader",
        version = "1.1",
        description = "Gestionnaire de telechargements pour otaku-attitude.net",
        options = {"build_exe": build_exe_options},
        executables = [Executable("otaku-loader.py", base=base)])
